package com.train.mgr.modules.system.entity;

import com.train.common.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * 岗位重要性
 * </p>
 *
 * @author cxg
 * @date 2024-06-19
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("a_post_weight")
public class PostWeight extends BaseEntity<PostWeight> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 岗位ID
     */
    @TableField("post_id")
    private Long postId;

    /**
     * 重要性（1-重要、2-有点重要、3-普通、4-不太重要、5-不重要）
     */
    @TableField("weight_type")
    private Integer weightType;

    /**
     * 职能分类ID
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * 项目ID
     */
    @TableField("project_id")
    private Long projectId;

    /**
     * 客户ID（租户ID）
     */
    @TableField("customer_id")
    private Long customerId;

    @TableField("is_deleted")
    private Integer isDeleted;
}
